package io;

import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-07-06
 * Time: 14:08
 */
public class IODemo4 {
    public static void main(String[] args) {
        File file = new File("test222");
        //列出当前目录下的文件
        String[] results = file.list();
        System.out.println(Arrays.toString(results));
        File[] results2 = file.listFiles();
        System.out.println(Arrays.toString(results2));
    }
}
